﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KinTN_WMS_CL.Model
{
    /// <summary>
    /// 出库详情
    /// </summary>
    [Table("OutStockItems")]
    public class OutStockItems : ModelBase
    {
        [ForeignKey("ParentCode")]
        public MesOrders MesOrders { get; set; }
        [Column("ParentCode")]
        [Required]
        /// <summary>
        /// 任务id
        /// </summary>
        public long ParentCode { get; set; }

        [ForeignKey("MaterialCode")]
        public Materials Materials { get; set; }
        /// <summary>
        /// 物料id
        /// </summary>
        [Column("MaterialCode")]
        [Required]
        public long MaterialCode { get; set; }
        /// <summary>
        /// 执行状态
        /// </summary>
        [Column("Status")]
        [Required]
        public OrderStatus Status { get; set; }
    }
}
